package com.maxatime.MyConfig;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Mr.Zhao
 * @title: LoginConfig
 * @projectName phoenix
 * @description: TODO
 * @date 2021/8/8 20:37
 */
@Configuration
public class LoginConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("register");
    }
}
